package com.wuwei.elearning.question.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 每个单独的问题都会生成一个question_item
 * </p>
 *
 * @author wuwei
 * @since 2024-01-17
 */
@TableName("question_item")
@ApiModel(value = "QuestionItem对象", description = "每个单独的问题都会生成一个question_item")
@Data
public class QuestionItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;


    private LocalDateTime createTime;

    private Long createBy;


    private Integer testTime;//考试的时间，精确到秒，比如60分钟就是3600秒

    private String userName;//user表的用户的名称

    private Long subjectId;//subject表的主键

    private Long gradeId;//grade表的主键

    private String title;//试卷的标题


}
